package com.iwomy.envpro.platform.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.iwomy.envpro.platform.entity.TelecomTianyiAiotEntity;
import com.iwomy.envpro.platform.mapper.TelecomTianyiAiotMapper;
import com.iwomy.envpro.platform.service.TelecomTianyiAiotService;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

/**
 * 电信天翼AIOT
 *
 * @author pig
 * @date 2023-12-28 10:32:38
 */
@Service
public class TelecomTianyiAiotServiceImpl extends ServiceImpl<TelecomTianyiAiotMapper, TelecomTianyiAiotEntity> implements TelecomTianyiAiotService {
	@Override
	@Cacheable(value = "telecom_tianyi_Aiot", key = "#imei")
	public TelecomTianyiAiotEntity oneByImei(String imei) {
		LambdaQueryWrapper eq = Wrappers.lambdaQuery(TelecomTianyiAiotEntity.class).eq(TelecomTianyiAiotEntity::getImei, imei);
		return this.getOne(eq);
	}
}